/**
 * @Author: bzirs
 * @Date: 2021-05-10 09:38:15
 * @LastEditors: bzirs
 * @LastEditTime: 2022-12-25 20:33:08
 * @FilePath: /vue2-hr-two/src/store/getters.js
 * @Description:
 * @
 * @Copyright (c) 2022 by bzirs, All Rights Reserved.
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  userId: state => state.user.userInfo.userId,
  menus: state => state.user.userInfo.roles.menus,
  points: state => state.user.userInfo.roles.points,
  menuList: state => state.menu.menus
}
export default getters
